package com.xy.controller.common;

import com.xy.api.service.common.IFieldOptionService;
import com.xy.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/fieldOption")
public class FieldOptionController extends BaseController {

    @Autowired
    private IFieldOptionService fieldOptionService;

    @PostMapping("/generateFieldOptionKey")
    public String generateFieldOptionKey() {
        String fieldOptionKey = fieldOptionService.generateOptionKey("approval");
        return fieldOptionKey;
    }
}
